from fastapi import FastAPI
from apps.users.routes import router as user_router
from apps.products.routes import router as product_router

app = FastAPI()

# 注册子应用路由
app.include_router(user_router)    # 路径：/users/*
app.include_router(product_router)  # 路径：/products/*

if __name__ == "__main__":
    import uvicorn
    uvicorn.run("main:app", host='127.0.0.1', port=8000, log_level="info", reload=True)
